
public class CashDispenser {
	
	public final static int INITIAL_BILLS = 500;
	private int count; // number of 20$ coins
	
	public CashDispenser() {
		count = INITIAL_BILLS;
	}
	
	public void dispenseCash(int amount) {
		int billRequired = amount / 20;
		count -= billRequired;
	}
	
	public boolean isSufficientCashAvailable(int amount) {
		int billRequired = amount / 20;
		if(count > billRequired) return true;
		else return false;
	}

}
